package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.device.model.entity.CityInfo;
import com.wtwd.device.model.entity.Weather;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zdl
 * @since 2021-08-10
 */
@Mapper
public interface WeatherMapper extends BaseMapper<Weather> {
    int replace(Weather weather);

    String getCidByCity(@Param("lang") String lang,@Param("city") String city, @Param("province") String province, @Param("country") String country);

    String getGFCidByCity(@Param("lang") String lang,@Param("city") String city, @Param("province") String province);

    String getGFCidByAppCid(@Param("appCid") String appCid);

    int replaceCityData(CityInfo cityInfo);

    int insertCityData(CityInfo cityInfo);
}
